
function distribute_students(){
var xmlHttp;
	try{
		xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
	}
	catch (e){
		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
		}
		catch (e){
		    try{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e){
				alert("No AJAX!?");
				return false;
			}
		}
	}

xmlHttp.onreadystatechange=function(){
   // var answer=document.form_answer.answer.value;
    //document.write(answer);
	if(xmlHttp.readyState==4){
	document.getElementById("distribute_result").innerHTML="<center><br/><br/><br/><br/><br/><br/><br/><br/>"+"<h18>"+xmlHttp.responseText+"</h18>"+"</center>";        
	}
}
document.getElementById("distribute_result").innerHTML="<img src='images/loading.jpg'width='560'height='400'>";
xmlHttp.open("GET","distribute_student.php",true);
xmlHttp.send(null);
}